package com.hx.jeeadminsecurity.auth2.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "tb_role")
public class TbRole {

	private static final long serialVersionUID = 1L;

	@Id
	private Long id;

	/**
	 * 父角色
	 */
	@Column(name = "parent_id")
	private Long parentId;

	/**
	 * 角色名称
	 */
	@Column(name = "`name`")
	private String name;

	/**
	 * 角色英文名称
	 */
	@Column(name = "`enname`")
	private String enname;

	/**
	 * 备注
	 */
	@Column(name = "description")
	private String description;

	@Column(name = "created")
	private Date created;

	@Column(name = "updated")
	private Date updated;

	
}
